package cn.wangchao.user.mapper;

import cn.wangchao.user.domain.Logininfo;
import cn.wangchao.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wangchao
 * @since 2022-06-16
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {
    /**
     * 短信登录
     * @param username
     * @param type
     * @return
     */
    Logininfo loadByUsernameAndpassword(@Param("username") String username,@Param("type")Integer type);

    /**
     *
     * @param userId
     * @return
     */
    Logininfo loadByUserId(Long userId);
}
